<#assign ctx="${rc.contextPath}">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<title></title>
		<style type="text/css">
			body {
				margin-left: 0px;
				margin-top: 0px;
				background-image: url('${ctx}/images/seach_4.gif');
			}
		</style>
		<link href="${ctx}/css/common.css" rel="stylesheet" type="text/css">
		<script type="text/javascript" src="${ctx}/js/jquery-1.4.4.min.js"></script>
		<style>
			a:link{color:#F08334;	text-decoration: none;}
		</style>
	</head>

	<body>
		<table width="90%" height=100% border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td height=25 id=location ><div align="left"><img src="${ctx}/images/location_arrow.gif" width="8" height="11" align="absmiddle"> 您的位置：流程审批&gt;&gt; 待审批信息&gt;&gt; 楼列表</div></td>
    </tr>
</table>

            <table width="280%" border="0" cellpadding="0" cellspacing="0" id="list"  bgcolor="#FFFFFF">
                <tr>  
				  <TH align="center" width="40"> 选择 </TH>   
				      <TH align="center" width="50"> 楼信息审批情况 </TH>     
                  <TH align="center" width="30"> 房屋类型 </TH>
				  <TH align="center" width="50"> 产权管理单位 </TH>
				    <TH align="center" width="50"> 小区名称 </TH>
                  <TH align="center" width="100"> 位置 </TH>
				  <TH align="center" width="20"> 楼号 </TH>
                  <TH align="center" width="20"> 单元数 </TH>
                  <TH align="center" width="30"> 房间套数 </TH>
				  <TH align="center" width="20"> 总层数 </TH>
                  <TH align="center" width="30"> 建成年代 </TH>
				  <TH align="center" width="20"> 建筑面积 </TH>
                  <TH align="center" width="20"> 测绘面积 </TH>
                  <TH align="center" width="100"> 权属证编号 </TH>
				  <TH align="center" width="100"> 建筑规划许可证 </TH>
				  <TH align="center" width="100"> 土地使用证 </TH>
                  <TH align="center" width="100"> 投资计划 </TH>
				  <TH align="center" width="100"> 施工许可证 </TH>
                  <TH align="center" width="40"> 建筑规划红线图 </TH>
                  <TH align="center" width="30"> 竣工备案表 </TH>
                  </tr>
                  <#if page.elements??>
                  <#list page.elements as build>
                <tr id="${build.build_id!""}">
                <TD align="center">
					<input type="checkbox" class="buildId" value="${build.build_id!""}">
				</TD>
                  <TD align="center">
                  	<#if build.check_status??>
                  	<#if build.check_status == '0'>
                  			未审批
                  		<#elseif build.check_status == '1'>
                  			未通过
                  		<#elseif build.check_status == '9'>
                  			已入库
                  	</#if>
                  	</#if>
                  </TD>
                  <TD align="center">
                  	<#if build.build_type == '0'>
                  			平房
                  		<#elseif build.build_type == '1'>
                  			楼房
                  	</#if>
                  </TD>
				  <TD align="center">  
				  	${build.group_id!""}
				  </TD>
                  <TD align="center">　
                  	${build.house_estate!""}
                  </TD>
                  <TD align="center">　
                  	${build.location!""}
                  </TD>
				  <TD align="center">　　
                  	${build.build_no!""}</TD>
				  <TD align="center">　　
                  	${build.unit_count!""}</TD>
                  <TD align="center">  　
                  	${build.room_count!""}</TD>
                  <TD align="center">　　
                  	${build.layer_count!""}</TD>
                  <TD align="center">　　
                  	${build.build_year!""}</TD>
				  <TD align="center">　　
                  	${build.build_areas!""}</TD>
				  <TD align="center">　　
                  	${build.test_areas!""}</TD>
                  <TD align="center">  　
                  	${build.qszbh!""}</TD>
                  <TD align="center">　　
                  	${build.jzghxkz!""}</TD>
                  <TD align="center">　　
                  	${build.tdsyz!""}</TD>
				  <TD align="center">　　
                  	${build.tzjh!""}</TD>
				  <TD align="center">　　
                  	${build.sgxkz!""}</TD>
				   <TD align="center">　　
                  	<#if build.jzghhxt == '0'>
                  		无
                  		<#elseif build.jzghhxt == '1'>
                  		有
                  	</#if>
                  	</TD>
				   <TD align="center">　　
                  	<#if build.jgbab == '0'>
                  		无
                  		<#elseif build.jgbab == '1'>
                  		有
                  	</#if>
                  	</TD>
                  </tr>
              </#list>
              </#if>
              </table>





          <table width="100%"  border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td id="page"><div align="right">
              <#if page.elements??>
              	<#if page.getTotalPage() != 0>
                    <@ui.pager page=page action="${ctx}/build/louquery.htm?flag=shenpi">
                        <input type="hidden" name="check_status" value="${dto.check_status!""}">
                    </@ui.pager>
                  </#if>
                  </#if>
              </div></td>
            </tr>
          </table>
          <table width="100%"  border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td>　</td>
            </tr>
          </table>
          <table width="100%"  border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td height="25" id="operation">                  <div align="right">
			  <input name="Submit2" type="button" class="input-button" value="不同意" onClick="shenpi(1)">
		  <img src="${ctx}/images/line.gif" width="5" height="15" align="absmiddle">
			  <input name="Submit2" type="button" class="input-button" value="同 意" onClick="shenpi(9)">         
              </div></td>
            </tr>
          </table>
	</body>
	
	<script>
		function shenpi(status) {
		
			var ids = '';
			$('.buildId:checked').each(function() {
				ids += $(this).val() + ',';
			});
			
			var url = "${ctx}/shenpi/build.htm?ids=" + ids + "&status=" + status;
			$.ajax({
			  type: "POST",
			  url: url,
			   success: function(msg){
				   	if (msg == '0') {
				   		alert("审批失败，请联系管理员！");
				   	} else if (msg == '1') {
				   		alert("审批成功！");
				   		document.location.reload();
				   		$('.buildId:checked').attr("checked", false);
				   	}
			   }

			});
			
		}
	</script>
</html>